from apps import Create_app
from ext import socketio
from flask_cors import CORS

app = Create_app()
# cors_allowed_origins解决跨域问题
socketio.init_app(app, cors_allowed_origins='*')
CORS(app, resources=r'/*')
if __name__ == '__main__':
    socketio.run(app, host='0.0.0.0', port=8081, debug=True)
